package cn.tedu.spring.diobj;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ruoLi
 */
public class TestEmp {
    ApplicationContext context = new ClassPathXmlApplicationContext("bean-diobj.xml");
    @Test
    public void Emp1Test(){
        Emp emp=context.getBean("emp1", Emp.class);
        System.out.println("emp = " + emp);
    }

    @Test
    public void Emp2Test(){
        Emp emp=context.getBean("emp2", Emp.class);
        System.out.println("emp = " + emp);
    }
    @Test
    public void Emp3Test(){
        Emp emp=context.getBean("emp3", Emp.class);
        System.out.println("emp = " + emp);
    }
}
